import {
  createApp
} from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import installElementPlus from './plugins/element'
import 'normalize.css'
import '@/assets/fonts/iconfont.js'
import style from './style'
import components from './components'
import directives from './directives'
import VueLazyLoad from 'vue3-lazyload'
style.mount()

const app = createApp(App)
  .use(store)
  .use(router)
  .use(installElementPlus)
components.mount(app)
directives.mount(app)
app.use(VueLazyLoad, {
  loading: () => {
    console.log('loading')
  },
  error: () => {
    console.log('error')
  },
  loaded: () => {
    console.log('loaded')
  }
})
app.mount("#app");